package com.csii.adhoc.dataready.service;

import com.csii.adhoc.dataready.TDataMergeDtlPo;

import java.util.List;
import java.util.Map;

/**
 * @description: 数据集接口类
 * @author: zyliu
 * @create: 2021-01-13 09:32
 */
public interface TDataMergeDtlService {

    void insertOneTDataMergeDtl(TDataMergeDtlPo tDataMergeDtl);

    void insertListTDataMergeDtl(List<TDataMergeDtlPo> tDataMergeDtls);

    int updateTDataMergeDtlByPrimaryKey(TDataMergeDtlPo tDataMergeDtl);

    int deleteTDataMergeDtlByPrimaryKey(String relationId,String masterId,String slaveId);

    int deleteByMergeId(String relationId);

    List<TDataMergeDtlPo> selectListTDataMergeDtl(String modelId);

    List<TDataMergeDtlPo> selectListTDataMergeDtlByIds(List<String> list);

    List<Map<String,String>> selectTableIdByModelId(String modelId);

    TDataMergeDtlPo selectOneTDataMergeDtl(String modeId, String fldEnname);

    void tDataMergeDtlMaintain(TDataMergeDtlPo tDataMergeDtl, String optMode);

    Map selCustDataDbTable(String sql);
}
